import { createSSRApp } from "vue"
import App from "./App"
import uviewPlus from "uview-plus"
import pinia from '@/plugin/pinia'
import http from '@/plugin/http'
import elastic from '@/plugin/elastic'
// #ifdef H5
import 'default-passive-events'
// #endif

export function createApp() {
	const app = createSSRApp(App);

	app.use(uviewPlus)
	app.use(pinia)
	app.use(elastic)
	app.use(http)
	// app.use(tim)
	//app.config.productionTip = false
	//app.mpType = 'app'

	return {
		app
	};
}
